package com.sdy.hospitalguard.biz.utils;

public class ParamChecker {
    public static boolean checkParamRequired(Object param, Object... l) {
        if (param == null || param instanceof String && "".equals(((String) param).trim())) {
            return false;
        }
        if (l.length == 0) {
            return true;
        }
        for (Object s : l) {
            if (param.equals(s)) {
                return true;
            }
        }
        return false;
    }
}
